package com.example.entity;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * @author ：liukai
 * @date ：Created in 2021/9/8 10:19 上午
 * @description：
 * @modified By：
 * @version: $
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Document(collection = "student")
public class Student {

    @Id
    private String id;
    @Indexed(unique = true)
    private Long studentId;
    private String username;
    private String password;
    private List<Gradle> gradleList;

}
